package com.shierke.Ume.ui.activity.me

import android.content.Context
import android.os.Bundle
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseActivity
import com.shierke.Ume.util.click
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_setting_discovery.*

/**
 * Create by Ybx
 * on 2020-10-27
 * Desribe:
 */
class SettingDiscoveryActivity : BaseActivity() {


    companion object {
        fun startActivity(context: Context) {
            context.startActivity<SettingDiscoveryActivity>()
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)


        setContentView(R.layout.activity_setting_discovery)

        setActivityTitleText(getString(R.string.me_setting_discovery_activity_title))
        setActivityRightText("OK")

        distanceProgress.setIndicatorTextDecimalFormat("0km")


        ageProgress.setProgress(0f,100f)
        ageProgress.setRange(0f,35f)
        ageProgress.setIndicatorTextDecimalFormat("0")


        maleLayout.click {
            maleLayout.isSelected = true
            femaleLayout.isSelected = false
            allLayout.isSelected = false
        }

        femaleLayout.click {
            maleLayout.isSelected = false
            femaleLayout.isSelected = true
            allLayout.isSelected = false

        }

        allLayout.click {
            maleLayout.isSelected = false
            femaleLayout.isSelected = false
            allLayout.isSelected = true

        }


        searchLocation.click { SearchLocationActivity.startActivity(this) }



    }


}
